﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="QuanLyKetNoiWebservice.aspx.cs" Inherits="AirPlane.QuanLyKetNoiWebservice" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
        .style1
        {
        	width:90%;
        	
        }
         </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table align="center" class="style1">
        <tr>
            <td colspan="2">
             <h3 class="page-title-517">QUẢN LÝ KẾT NỐI SERVICE</h3>
             </td>
        </tr>
         <tr>
            <td colspan="2">
                <asp:Label ID="lbThongBao" runat="server" Text=""></asp:Label> </td>
        </tr>
        <tr>
            <td colspan="2">
                
                Từ Khóa :<asp:TextBox ID="txtKey" runat="server" CssClass="input-hey-search"></asp:TextBox>
                 <asp:Button ID="btnSearch" runat="server" CssClass="btnSearch-TaiKhoan" 
                    onclick="btnSearch_Click"  />
                
        </tr>

</table>

     <div id="search-ket-noi">
         <asp:Label ID="lbTaiKhoan" runat="server" Text=""></asp:Label>
    <asp:GridView ID="gwKetNoi" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" GridLines="None" ForeColor="#333333" Width="900px" 
             DataKeyNames="ID_doanhNghiep" 
             onpageindexchanging="gwKetNoi_PageIndexChanging" 
             onrowcancelingedit="gwKetNoi_RowCancelingEdit" 
             onrowdeleting="gwKetNoi_RowDeleting" onrowediting="gwKetNoi_RowEditing" 
             onrowupdating="gwKetNoi_RowUpdating" BorderColor="#CCCCCC" CellSpacing="1" 
             ShowFooter="True">
        <AlternatingRowStyle BackColor="White" />
         <Columns>
             <asp:TemplateField HeaderText="ID">
                 <ItemTemplate>
                     <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID_doanhNghiep") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="50px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Tên Doanh Nghiệp">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("tenDoanhNghiep") %>' 
                         Width="130px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtTenDoanhNghiep" runat="server" 
                         Text="" Width="130px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label2" runat="server" Text='<%# Bind("tenDoanhNghiep") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="150px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Địa Chỉ">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("diaChi") %>' 
                         Width="150px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtDiaChi" runat="server" Text=""
                         Width="150px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label3" runat="server" Text='<%# Bind("diaChi") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="160px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Email">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("email") %>' 
                         Width="110px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtEmail" runat="server" Text="" 
                         Width="110px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label4" runat="server" Text='<%# Bind("email") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="120px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Số Điện Thoại">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("soDienThoai") %>' 
                         Width="100px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtSoDienThoai" runat="server" 
                         Text="" Width="100px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label5" runat="server" Text='<%# Bind("soDienThoai") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Tài Khoản Đăng Nhập">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox6" runat="server" 
                         Text='<%# Bind("taiKhoanDangNhap") %>' Width="130px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtTaiKhoanDangNhap" runat="server" 
                         Text="" Width="130px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label6" runat="server" Text='<%# Bind("taiKhoanDangNhap") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="170px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Mật Khẩu">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("matKhau") %>' 
                         Width="100px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtMatKhau" runat="server" Text="" Width="100px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label7" runat="server" Text='<%# Bind("matKhau") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField ShowHeader="False">
                 <EditItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="True" 
                         CommandName="Update" ImageUrl="~/images/save.gif" Text="Update" 
                         ToolTip="Lưu Lại" />
                     &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" 
                         CommandName="Cancel" ImageUrl="~/images/delete.gif" Text="Cancel" 
                         ToolTip="Hoãn Lại" />
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:ImageButton ID="imgbtnThemDoanhNghiep" runat="server" 
                         ImageUrl="~/images/add.png" onclick="imgbtnThemDoanhNghiep_Click" 
                         ToolTip="Thêm Mới" />
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                         CommandName="Edit" ImageUrl="~/images/edit.gif" Text="Edit" 
                         ToolTip="Cập Nhật" />
                     &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" 
                         CommandName="Delete" ImageUrl="~/images/delete-item.jpg" Text="Delete" 
                         ToolTip="Xóa" />
                 </ItemTemplate>
                 <ItemStyle Width="50px" />
             </asp:TemplateField>
    </Columns>
         <EditRowStyle BackColor="#FFFDDF" />
        <FooterStyle BackColor="#FFFDDF" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />

    </asp:GridView>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>